package com.example.petstoreservice.mapper;

import com.example.petstoreservice.entity.Review;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ReviewMapper {
    List<Review> getAllReviews();
    List<Review> getReviewsByProductId(int productId);
    int insertReview(Review review);
    int updateReview(Review review);
    int deleteReview(int reviewId);
    List<Review> getReviewsByUsername(String username);
}
